package com.numberone.master.modules.orders.entity;

import org.hibernate.validator.constraints.Length;

import com.numberone.master.common.persistence.DataEntity;

/**
 * 分润Entity
 * @author ck
 * @version 2018-03-27
 */
public class ShareOrder extends DataEntity<ShareOrder> {
	
	private static final long serialVersionUID = 1L;
	private String iccid;		// iccid
	private String totalAmount;		// 交易总金额
	private String superiorOfficeId;		// 上级代理商
	private String costAmount;		// 成本价格
	private String shareAmount;		// 分润金额
	private String orderNo;		// 订单号
	private String officeId;		// 所属代理商
	private Long pkgType;		// 所属套餐
	private String officeName; //代理商名称
	private String createById;		// 创建者
	private String updateById;		// 更新者
	public ShareOrder() {
		super();
	}

	public ShareOrder(String id){
		super(id);
	}

	@Length(min=0, max=20, message="iccid长度必须介于 0 和 20 之间")
	public String getIccid() {
		return iccid;
	}

	public void setIccid(String iccid) {
		this.iccid = iccid;
	}
	
	public String getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(String totalAmount) {
		this.totalAmount = totalAmount;
	}
	
	@Length(min=0, max=20, message="上级代理商长度必须介于 0 和 20 之间")
	public String getSuperiorOfficeId() {
		return superiorOfficeId;
	}

	public void setSuperiorOfficeId(String superiorOfficeId) {
		this.superiorOfficeId = superiorOfficeId;
	}
	
	public String getCostAmount() {
		return costAmount;
	}

	public void setCostAmount(String costAmount) {
		this.costAmount = costAmount;
	}
	
	public String getShareAmount() {
		return shareAmount;
	}

	public void setShareAmount(String shareAmount) {
		this.shareAmount = shareAmount;
	}
	
	@Length(min=0, max=20, message="订单号长度必须介于 0 和 20 之间")
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@Length(min=0, max=20, message="所属代理商长度必须介于 0 和 20 之间")
	public String getOfficeId() {
		return officeId;
	}

	public void setOfficeId(String officeId) {
		this.officeId = officeId;
	}
	
	public Long getPkgType() {
		return pkgType;
	}

	public void setPkgType(Long pkgType) {
		this.pkgType = pkgType;
	}

	public String getOfficeName() {
		return officeName;
	}

	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}

	public String getCreateById() {
		return createById;
	}

	public void setCreateById(String createById) {
		this.createById = createById;
	}

	public String getUpdateById() {
		return updateById;
	}

	public void setUpdateById(String updateById) {
		this.updateById = updateById;
	}
	
}